package com.cyq.day24.regex;

public class User {
    private String UserName;

    private String UserPassword;
    private String UserEmail;
    private  String UserPhoneNum;

    public User() {
    }

    public User(String userName, String userPassword, String userEmail, String userPhoneNum) {
        UserName = userName;
        UserPassword = userPassword;
        UserEmail = userEmail;
        UserPhoneNum = userPhoneNum;
    }

    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public String getUserPassword() {
        return UserPassword;
    }

    public void setUserPassword(String userPassword) {
        UserPassword = userPassword;
    }

    public String getUserEmail() {
        return UserEmail;
    }

    public void setUserEmail(String userEmail) {
        UserEmail = userEmail;
    }

    public String getUserPhoneNum() {
        return UserPhoneNum;
    }

    public void setUserPhoneNum(String userPhoneNum) {
        UserPhoneNum = userPhoneNum;
    }

    @Override
    public String toString() {
        return
                "用户名='" + UserName + '\'' +
                "密码='" + UserPassword + '\'' +
                "邮箱='" + UserEmail + '\'' +
                "电话号码='" + UserPhoneNum + '\''+"\n"
                ;
    }
}
